<?php
		  $Filedem="visit.txt";
		  $Mo=fopen($Filedem, "r");
		  $Dem=fread($Mo, filesize($Filedem));
		  fclose($Mo);
		  //$Dem++;
		  if(@$_SESSION["visited"]!=1){
		  	  $Dem++;
			  $Mo=fopen($Filedem, "w");
			  fwrite($Mo, $Dem);
			  fclose($Mo);
			  $_SESSION["visited"]=1;			  
			  
			  echo $Dem;
		  }else{
		  	echo $Dem;
		    
		  }
?>